<html>
 <head>
<title>Persons list ${start} - ${start + max}</title>
</head>
<body onLoad="">
<content tag="footer">
	<g:jasperReport 
 jasper="report5" 
 format="PDF,HTML,CSV,XLS,RTF,ODT,ODS,DOCX,XLSX,PPTX"  name="Bands"> 
 
 <br> 
 Your name: <input type="text" name="name1"/> 
 <br> 
 Title: <input type="text" name="title1"/> 
</g:jasperReport>
	</content>
<g:link action="index">List</g:link> <g:link action="save">Create</g:link>
	<center><table border="1">
		<tr>
			<th><g:message code="default.ID.label" /></th>
			
			<th><g:message code="default.firstName.label" /></th>
 
			<th><g:message code="default.lastName.label" /></th>
 
			<th><g:message code="default.birthDate.label" /></th>
 
			<th><g:message code="default.legalIdentifier.label" /></th>
 
			<th><g:message code="default.edit.label" /></th>
 
			<th><g:message code="default.delete.label" /></th>
 
		</tr>
 
		<g:each in="${persons}">
			<tr>
				<td>
					<g:link action="show" id='${it.id }'>${it.id }</g:link>
				</td>
				<td>
					${it.firstName }
				</td>
				<td>
					${it.lastName }
				</td>
				<td>
					${it.birthDate.format('yyyy/MM/dd') }
				</td>
				<td>
					${it.legalIdentifiers }
		          </td>
				<td><g:link action="editPer" id="${it.id }"><g:message code="default.edit.label" /></g:link></td>
			    <td><g:link action="delete" id="${it.id }"><g:message code="default.delete.label" /></g:link></td>
              </tr>
 		</g:each>
 	</table>
</body>
</html>